import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.Arrays;

public class DynamicProxyHandle implements InvocationHandler {
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("进入了动态代理");
        System.out.println("代理方法是"+method.getName());
        System.out.println("代理的参数列表");
        System.out.println(Arrays.toString(args));
        return null;
    }
}
